package com.mtsmda.ws.rest.services;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;

@Path("/hello")
public class HelloWorldService {
	
	@GET
	@Path("/{param}")
	public Response getMessage(@PathParam("param") String message){
		StringBuilder out = new StringBuilder();
		out.append("Jersey say - ").append(message);
		
		return Response.status(200).entity(out.toString()).build();
	}
	
	@GET
	@Path("/")
	public Response getMessage(){
		StringBuilder out = new StringBuilder();
		out.append("Jersey say - ").append("Message");
		
		return Response.status(200).entity(out.toString()).build();
	}
	
}